<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>详细</title>
		<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" type="text/css" href="../../css/mui.min.css" />
		<link rel="stylesheet" type="text/css" href="../../css/app.css"/>
		<style>
			*{
				padding: 0px;
				border: 0px;
				padding: 0px;
				font-family: "黑体";
				background-color: white;
			}
			
			.level-container{
				margin: 5px 8px 0px 8px;
			}
			
			.topic-header{
				color: #a1a1a1;
				font-size: 13px;
				height: 22px;
			}
			
			.topic-header .topic-logo{
				display: block;
				float: left;
			}
			
			.topic-header .pubtime{
				display: block;
				float: right;
			}
			
			.topic-title{
				float: left;
				margin-top: 6px;
				color: #414141;
				font-size: 15px;
			}
			
			.topic-opers{
				margin-top: 20px;
			}
		</style>
	</head>
	<body>
		<script id="dattemp" type="text/template">
			<% for(var i = 0; i < record.length; i ++) {%>
			<% if(record[i] != null && record[i] != ""){ %>
			<div style="font-size: 15px; color: #616161;"><span> 
				<%= (record[i].username) %>
			</span></div> 
			<% } else { %>
				字段为空呢
			<% } }%>
		</script>
		<div class="container"> 
			<div class="level-container">
				<div class="topic-header">
					<span class="topic-logo">校园小管家</span>
					<span class="pubtime">2012-12-12</span>
				</div>
				<div class="topic-title">
					<span>我们是祖国的未来</span>
				</div><br /><br />
				<div id="topic-content" class="topic-content"></div>
				
				<div class="topic-opers"></div>
			</div>
		</div>
	</body>
	<script src="../../js/mui.min.js"></script>
	<script src="../../js/bus/pubfun.js"></script>
	<script src="../../js/arttmpl.js"></script> 
	<script type="text/javascript"> 
		var $topicId = getQueryString(window.location.search, "topicid");
		//template.config("escape", false);  
		var $record = [{
			username : "dengxuzhao",
			usernick : "xuzhaodeng"
		},{
			username : "1q2w3e4r5t6y",
			usernick : "1q2w3e4r"
		},{
			username : "zaqwsx", 
			usernick : "12345"
		}]
		document.getElementById("topic-content").innerHTML = template("dattemp", {"record": $record});
	</script> 
</html>  
